package com.laboratory.report.lab02.lab0205;

/**
 * 测试
 */
public class Lab0205Main {

    public static void main(String[] args) {
        Driver driver1 = new Driver(25, "A1");
        Driver driver2 = new Driver(26, "A1");
        try {
            driver1.drive(new Vehicle());
        } catch (IllegalAgeException e) {
            System.out.println("年龄不合法");
            e.printStackTrace();
        }
        driver2.drive(new Vehicle());
    }
}
